package com.xjw.entity;

/**
 * @author 徐军文
 * @since 2021/11/4 21:45
 */
public enum ChessType {

    PTOP(1,"人人"),
    PTOR(2,"人机"),
    RTOR(3, "机器互博");

    private int type;
    private String msg;

    ChessType(int type, String msg) {
        this.type = type;
        this.msg = msg;
    }

    public String getMsg() {
        return this.msg;
    }

    public int getType() {
        return this.type;
    }

    public static String[] getMsgs() {
        String [] msgs =  new String[values().length];
        chessType:
        for (int i = 0;i < values().length;i++) {
            msgs[i] = values()[i].getMsg();
        }
        return msgs;
    }

}
